<template>
  <section>
    <van-cell-group>
      <van-field
        v-model="username"
        required
        clearable
        label="手机号"
        type="tel"
        right-icon="question-o"
        placeholder="请输入手机号"
        @click-right-icon="$toast(alert.message)"
      />
      <van-field
        v-model="password"
        required
        clearable
        type="password"
        label="密码"
        placeholder="请输入密码"
      />
    </van-cell-group>
    <van-cell-group>

      <van-button @click="login">登录</van-button>
      <van-button @click="openWin('./reg.html')">注册</van-button>
      <van-button @click="openWin('./pwd.html')">忘记密码</van-button>

    </van-cell-group>


  </section>


</template>

<script>
  import common from "../../../../util/index";
  import {Button, Field, CellGroup, Cell, Row, Col, Toast } from "vant/es";

  export default {
    components: {
      [Button.name]: Button,
      [Field.name]: Field,
      [Row.name]: Row,
      [Col.name]: Col,
      [Cell.name]: Cell,
      [CellGroup.name]: CellGroup,
    },
    data() {
      return {
        show:false,
        alert: {
          message: "hello world",
        },
        username:"",
        password:"",
      };
    },

    computed: {},
    methods: {
      login(){

      },
      ...common.methods,
    },
  };
</script>
<style lang="scss">

</style>
